package com.example.discover

import com.example.discover.dao.SubjectDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class DiscoverHiltModule{
    @Provides
    @Singleton
    fun callback(subjectDao: SubjectDao) = DiscoverDatabaseCallback(subjectDao)

    @Provides
    @Singleton
    fun featureSdk() = DiscoverFeatureSDK()
}
